package spec.maxiuying.unit4.take_1.take_2;

public class Main {
    public static class HireUserTest1 {
        public static void main(String[] args) {

            System.out.println("通过无参数的构造方法创建对象");

            Customer1 customer=new Customer1();

            HireUser1 hireUser=new HireUser1();

            System.out.println("********************");

            System.out.println("通过有参数的构造方法创建对象");

            Customer1 customer1=new Customer1(1001,"张宇", '男',"86338180","86338129","zy@qq.com","353068128","32108199012251976","江苏省常州市武进区");

            Date recordDate=new Date();

            HireUser1 hireUser1=new HireUser1(1001,"张宇",'男',"86338180","86338129","zy@qq.com","353068128","32108199012251976","江苏省常州市武进区","1001",recordDate);

            System.out.println("********************");

            Customer1 customer2=new HireUser1();

            customer2.setUserName("张辽");

            customer2.showUserName();

            System.out.println("********************");

            Customer1 customer3=new HireUser1();

            HireUser1 hireUser3=(HireUser1)customer3;

            hireUser3.setUserName("孙权");

            hireUser3.showUserName();



        }

    }
}
